@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  background-color: $bg;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: $font-family;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.right {
  float: right;
}

.text-right {
  text-align: right;
}

//main-container全局样式
.app-main {
  height: 100%;
  // padding: $app-main-padding;
}

.app-container {
  padding: 20px;
}

section.layer + section.layer {
  margin-top: 12px;
}

#app .sidebar-container .submenu-title-noDropdown:hover, 
#app .sidebar-container .el-submenu__title:hover {
  @include set-tag-bg($tag-theme1);
}


.box {
  position: relative;
  padding: 10px;
  height: 100%;
  background-color: $white;
  border-radius: $border-radius;
  border: 1px solid $border-color2;
  font-size: $font-size14;

  .box-header {
    position: relative;
    height: 20px;
    line-height: 20px;
    margin-bottom: 16px;
    font-size: $font-size14;

    span.box-title {
      position: relative;
      display: inline-block;
      padding-left: 10px;
      font-weight: 700;
      color: $text-color-title;
      font-size: $font-size16;
      // height: 16px;
      // line-height: 16px;

      &::after {
        content: '';
        position: absolute;
        width: 6px;
        height: 16px;
        left: 0;
        top: 2px;
        background-color: $--color-primary;
      }
    }

    .box-tools {
      position: absolute;
      right: 0;
      top: -5px;
      font-size: 0;

      .el-button--text {
        color: $text-color;
      }
    }

    &.handle {
      height: 24px;
      line-height: 24px;

      span.box-title::after {
        top: 5px;
      }

      .box-tools {
        top: -1px;
      }
    }
  }

  // .box-header + .box-body {
    // padding-top: $const10;
    // border-top: 1px solid $border-color2;
  // }

  .box-header.handle + .box-body {
    height: calc(100% - 40px);

    .el-table {
      height: calc(100% - 34px);
    }
  }

  .box-body .el-form .el-row .el-col button {
    margin-bottom: 6px;
  }

  .el-input-group__prepend button ,
  .el-input-group__append button{
    margin: 0 -20px !important;
    height: 30px;
  }
  
  &.no-border {
    border-color: transparent;
  }

  &.no-radius {
    border-radius: 0;
  }

  & + .box {
    margin-top: 12px;
  }
}

// .pagination {
//   margin-top: 5px;
//   button {
//     padding-left: 0;
//     padding-right: 0;
//   }

//   .el-pagination {
//     @extend .right;
//   }
// }

.table-handle {
  margin-bottom: 16px;

  .el-col:last-child {
    text-align: right;
  }
}
//修改表格中表单校验错误提示样式
.table-form-validate {
  .el-form-item__error{
    padding: 5px;
    background-color: #f56c6c;
    color: #fff;
    white-space: nowrap;
    line-height: 24px;
    left: 50%;
    bottom: auto;
    border-radius: 5px;
    transform: translateX(-50%);
  }
  .el-form-item__error--inline{
    position: absolute;
    top: 100%;
    margin-left:0px;
  }
	.el-form-item__content{
	  position: static;
	}
	&.el-form .el-form-item{
	  margin-bottom: 0px;
	}
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ 
::-webkit-scrollbar {
    width: 4px;
    height: 4px
}
/*定义滚动条轨道*/ 
::-webkit-scrollbar-track {
    background-color: transparent;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em
}
/*定义滑块 内阴影+圆角*/ 
::-webkit-scrollbar-thumb {
    background-color: #c0c4cc;
    // background-image: -webkit-linear-gradient(45deg,rgba(255,255,255,.4) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.4) 75%,transparent 75%,transparent);
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2px;
}
// 调整elementui中弹出框中确定和取消按钮的位置
.btn-custom-cancel {
  float: right;
  margin-left: 10px;
}

.vxe-table {

  thead th {
    font-size: 14px;
    font-weight: 700;
    color: $text-color-title;
  }

  .vxe-table--header .vxe-header--column {
    text-align: center !important;
  }

  .vxe-table--body {

    .vxe-body--column  {
      text-align: center;
    }

    .col--right {
      text-align: right !important;
    }
    .col--left {
      text-align: left !important;
    }
  }

  .vxe-header--column:not(.col--ellipsis) {
    padding: 0 !important;
    height: 44px;
    line-height: 44px
  }

  .handle-text {
    color: $--color-primary;

    &.modify {
      color: $--color-primary;
    }

    &.delete {
      color: $--color-danger;
    }

    &.save {
      color: $--color-success;
    }
  }
}

@media only screen and (max-width: 1024px) {
  .el-col-md-12 {
    width: 50%;
  }
}

@media only screen and (min-width: 1025px) {
  .el-col-lg-8 {
    width: 33.3333%;
  }
  
}

@media only screen and (min-width: 1025px) and (max-width: 1440px) {
  .el-col-lg-16 {
    width: 66.6666%;
  }
}

@media only screen and (min-width: 1441px) {
  .el-col-xl-6 {
    width: 25%;
  }
  .el-col-xl-12 {
    width: 50%;
  }
}

.item2 {
  height: 100%;

  & > section:first-child .el-col:last-child {
    font-size: 0;
  }

  @media only screen and (max-width: 1024px) {
    & > section:first-child .el-col:last-child {
      float: right;
      text-align: right;
    }
  }

  @media only screen and (min-width: 1025px) {
    & > section:first-child .el-form-item {
      margin-bottom: 0px;
    }
  }

  & > section:nth-child(2) {
    height: calc(100% - 107px);
    @media only screen and (max-width: 1024px) {
      height: calc(100% - 156px);
    }
  }
}

.item3 {
  height: 100%;

  & > section:first-child .el-col:last-child {
    font-size: 0;
  }

  @media only screen and (min-width: 1441px) {
    & > section:first-child .el-form-item {
      margin-bottom: 0px;
    }
  }

  @media only screen and (max-width: 1440px) {
    & > section:first-child .el-col:last-child {
      float: right;
      text-align: right;
    }
  }

  @media only screen and (max-width: 1024px) {
    & > section:first-child .el-row .el-col:nth-child(3) .el-form-item {
      margin-bottom: 0px;
    }
  }

  & > section:nth-child(2) {
    height: calc(100% - 107px);
    @media only screen and (max-width: 1440px) {
      height: calc(100% - 156px);
    }
  }
}

.item4 {
  height: 100%;

  & > section:first-child .el-col:last-child {
    font-size: 0;
    float: right;
    text-align: right;
  }

  @media only screen and (min-width: 1025px) and (max-width: 1440px) {
    & > section:first-child .el-row .el-col:nth-child(4) .el-form-item {
      margin-bottom: 0px;
    }
  }

  & > section:nth-child(2) {
    height: calc(100% - 156px);
    @media only screen and (max-width: 1024px) {
      height: calc(100% - 203px);
    }

    &.ts > .el-row {
      height: 100%;
  
      & > .el-col {
        height: 100%;
      }
    }
  }
}

.item5 {
  height: 100%;

  & > section:first-child .el-col:last-child {
    font-size: 0;
    float: right;
    text-align: right;
  }
  
  & > section:first-child .el-row .el-col:nth-child(5) .el-form-item {
    margin-bottom: 6px;
  }

  @media only screen and (min-width: 1025px) and (max-width: 1440px) {
    & > section:first-child .el-row .el-col:nth-child(4) .el-form-item {
      margin-bottom: 6px;
    }
  }

  & > section:nth-child(2) {
    height: calc(100% - 156px);
    @media only screen and (max-width: 1024px) {
      height: calc(100% - 203px);
    }

    &.ts > .el-row {
      height: 100%;

      & > .el-col {
        height: 100%;
      }
    }
  }
}

.item6 {
  height: 100%;

  & > section:first-child .el-col:last-child {
    font-size: 0;
    float: right;
    text-align: right;
  }

  @media only screen and (min-width: 1441px) {
    & > section:first-child .el-row .el-col:nth-child(5) .el-form-item,
    & > section:first-child .el-row .el-col:nth-child(6) .el-form-item {
      margin-bottom: 0px;
    }
  }

  & > section:nth-child(2) {
    height: calc(100% - 156px);
    @media only screen and (min-width: 1025px) and (max-width: 1440px) {
      height: calc(100% - 203px);
    }
    @media only screen and (max-width: 1024px) {
      height: calc(100% - 251px);
    }
  }
}

.item7 {
  height: 100%;

  & > section:first-child .el-col:last-child {
    font-size: 0;
    float: right;
    text-align: right;
  }

  @media only screen and (min-width: 1441px) {
    .el-form .el-row .el-col:nth-child(5) .el-form-item,
    .el-form .el-row .el-col:nth-child(6) .el-form-item,
    .el-form .el-row .el-col:nth-child(7) .el-form-item {
      margin-bottom: 0;
    }
  }
  @media only screen and (max-width: 1440px) {
    .el-form .el-row .el-col:nth-child(7) .el-form-item {
      margin-bottom: 0;
    }
  }
  & > section:nth-child(2) {
      height: calc(100% - 156px);
      @media only screen and (min-width: 1025px) and (max-width: 1440px) {
        height: calc(100% - 203px);
      }
      @media only screen and (max-width: 1024px) {
        height: calc(100% - 251px);
      }
  }
}
// 带tab页的查询页面
.el-tabs__content{
  .item2 {
    height: 100%;
  
    & > section:first-child .el-col:last-child {
      font-size: 0;
    }
  
    @media only screen and (max-width: 1024px) {
      & > section:first-child .el-col:last-child {
        float: right;
        text-align: right;
      }
    }
  
    @media only screen and (min-width: 1025px) {
      & > section:first-child .el-form-item {
        margin-bottom: 0px;
      }
    }
  
    & > section:nth-child(2) {
      height: calc(100% - 119px);
      @media only screen and (max-width: 1024px) {
        height: calc(100% - 168px);
      }
    }
  }
  
  .item3 {
    height: 100%;
  
    & > section:first-child .el-col:last-child {
      font-size: 0;
    }
  
    @media only screen and (min-width: 1441px) {
      & > section:first-child .el-form-item {
        margin-bottom: 0px;
      }
    }
  
    @media only screen and (max-width: 1440px) {
      & > section:first-child .el-col:last-child {
        float: right;
        text-align: right;
      }
    }
  
    @media only screen and (max-width: 1024px) {
      & > section:first-child .el-row .el-col:nth-child(3) .el-form-item {
        margin-bottom: 0px;
      }
    }
  
    & > section:nth-child(2) {
      height: calc(100% - 119px);
      @media only screen and (max-width: 1440px) {
        height: calc(100% - 168px);
      }
    }
  }
  
  .item4 {
    height: 100%;
  
    & > section:first-child .el-col:last-child {
      font-size: 0;
      float: right;
      text-align: right;
    }
  
    @media only screen and (min-width: 1025px) and (max-width: 1440px) {
      & > section:first-child .el-row .el-col:nth-child(4) .el-form-item {
        margin-bottom: 0px;
      }
    }
  
    & > section:nth-child(2) {
      height: calc(100% - 168px);
      @media only screen and (max-width: 1024px) {
        height: calc(100% - 215px);
      }
  
      &.ts > .el-row {
        height: 100%;
    
        & > .el-col {
          height: 100%;
        }
      }
    }
  }
  
  .item5 {
    height: 100%;
  
    & > section:first-child .el-col:last-child {
      font-size: 0;
      float: right;
      text-align: right;
    }
    
    & > section:first-child .el-row .el-col:nth-child(5) .el-form-item {
      margin-bottom: 6px;
    }
  
    @media only screen and (min-width: 1025px) and (max-width: 1440px) {
      & > section:first-child .el-row .el-col:nth-child(4) .el-form-item {
        margin-bottom: 6px;
      }
    }
  
    & > section:nth-child(2) {
      height: calc(100% - 168px);
      @media only screen and (max-width: 1024px) {
        height: calc(100% - 215px);
      }
  
      &.ts > .el-row {
        height: 100%;
  
        & > .el-col {
          height: 100%;
        }
      }
    }
  }
  
  .item6 {
    height: 100%;
  
    & > section:first-child .el-col:last-child {
      font-size: 0;
      float: right;
      text-align: right;
    }
  
    @media only screen and (min-width: 1441px) {
      & > section:first-child .el-row .el-col:nth-child(5) .el-form-item,
      & > section:first-child .el-row .el-col:nth-child(6) .el-form-item {
        margin-bottom: 0px;
      }
    }
  
    & > section:nth-child(2) {
      height: calc(100% - 168px);
      @media only screen and (min-width: 1025px) and (max-width: 1440px) {
        height: calc(100% - 215px);
      }
      @media only screen and (max-width: 1024px) {
        height: calc(100% - 263px);
      }
    }
  }
  
  .item7 {
    height: 100%;
  
    & > section:first-child .el-col:last-child {
      font-size: 0;
      float: right;
      text-align: right;
    }
  
    @media only screen and (min-width: 1441px) {
      .el-form .el-row .el-col:nth-child(5) .el-form-item,
      .el-form .el-row .el-col:nth-child(6) .el-form-item,
      .el-form .el-row .el-col:nth-child(7) .el-form-item {
        margin-bottom: 0;
      }
    }
    @media only screen and (max-width: 1440px) {
      .el-form .el-row .el-col:nth-child(7) .el-form-item {
        margin-bottom: 0;
      }
    }
    & > section:nth-child(2) {
        height: calc(100% - 168px);
        @media only screen and (min-width: 1025px) and (max-width: 1440px) {
          height: calc(100% - 215px);
        }
        @media only screen and (max-width: 1024px) {
          height: calc(100% - 263px);
        }
    }
  }
  
}

.input2 {
  height: 100%;

  .flex {
    .btn-box {
      width: 260px;
      float: left;
    }
    .input-box {
      margin-left: 266px;
    }
  }

  @media only screen and (min-width: 1441px) {
    .el-form .el-row .el-col .el-form-item {
      margin-bottom: 0;
    }
  }
  @media only screen and (max-width: 1440px) {
    .el-form .el-row .el-col:last-child {
      float: right;
      text-align: right;
    }
  }
  & > section:last-child {
    height: calc(100% - 107px);
    @media only screen and (min-width: 1025px) and (max-width: 1440px) {
      height: calc(100% - 156px);
    }
    @media only screen and (max-width: 1024px) {
      height: calc(100% - 203px);
    }
  }
}

.input3 {
  height: 100%;

  & > section:first-child .el-col:last-child {
    font-size: 0;
    float: right;
    text-align: right;
  }

  .flex {
    .btn-box {
      width: 260px;
      float: left;
    }
    .input-box {
      margin-left: 266px;
    }
  }

  @media only screen and (min-width: 1025px) and (max-width: 1440px){
    .el-form .el-row .el-col:nth-child(3) .el-form-item {
      margin-bottom: 0;
    }
  }

  & > section:last-child {
    height: calc(100% - 156px);
    @media only screen and (max-width: 1024px) {
      height: calc(100% - 203px);
    }
  }
}

.input4 {
  height: 100%;

  & > section:first-child .el-col:last-child {
    font-size: 0;
    float: right;
    text-align: right;
  }

  .flex {
    .btn-box {
      width: 260px;
      float: left;
    }
    .input-box {
      margin-left: 266px;
    }
  }

  @media only screen and (min-width: 1025px) {
    .el-form .el-row .el-col:nth-child(4) .el-form-item {
      margin-bottom: 0;
    }
  }

  & > section:last-child {
    height: calc(100% - 156px);
    @media only screen and (max-width: 1024px) {
      height: calc(100% - 251px);
    }
  }
}
// vxe表格按钮颜色
.vxe-table .handle-text.delete{
  color: #f56c6c;
}
.vxe-table .handle-text.modify{
  color: #1B65B9;
}
.price-add-tab-button {
  position: absolute;
  right: 0;
  top: -102px;
}
// sps中弹出框组件在父元素中，内容引入时，footer样式
.sps-dialog-footer{
  border-top: 1px solid #cecece;
    padding: 17px 84px 16px 0;
    font-size: 0;
    line-height: 1;
    text-align: right;
}
// 上传文件显示列宽度
.el-upload-list__item{
  width: 20%;
}

#changeContab {

  .el-tabs--border-card>.el-tabs__content {
    padding: 0 10px;
  }

  .tabBody .el-row {
    margin: 0 0 16px !important; 
  }

  .bottom {
    padding: 17px 84px 16px 0;
    font-size: 0;
    line-height: 1;
    text-align: right !important;
    border-top: 1px solid #cecece;
    margin-top: 16px !important;
  }
}
// 周期表达式弹出框样式
.cron-dialog.el-dialog {
  // 内嵌弹出框高度
  .el-dialog__body{
    max-height: 660px;
  }
}